package com.nearby.demand.model;

/**
 * Created by Administrator on 2016/home_1/7.
 */

public class User {

    /**
     * message : 登录成功
     * rest_code : SUCCESS
     * rest_data : {"companyname":"深圳市南方网通网络技术开发有限公司\u2014\u2014方乐","createtime":"2015-12-05 14:37:32","id":"e9c3ef9d71e4614fa8c473e9e40cb3bd","initial":"hdy","isadmin":"Y","islogin":"Y","logindate":"2016-01-07 14:21:02","loginip":"220.112.231.143","parentid":"-home_1","password":"8b4cf0258846b23e0a8272bee22c38dd","pinyin":"huangdeying","roleid":"home_2","saveuserid":"系统添加","userauth":"M2RhYm5MMlV5VXpyVjBFSUN2akhRRVhvWEluVDFFYVZWQjFVWW9KN0dZcVNOMndRSVFmZkV6dEc0a2NYZGNn","usercode":"zhongxin002","usergroup":"home_2","userjob":"管理员","username":""}
     */

    private DataEntity data;
    /**
     * data : {"message":"登录成功","rest_code":"SUCCESS","rest_data":{"companyname":"深圳市南方网通网络技术开发有限公司\u2014\u2014方乐","createtime":"2015-12-05 14:37:32","id":"e9c3ef9d71e4614fa8c473e9e40cb3bd","initial":"hdy","isadmin":"Y","islogin":"Y","logindate":"2016-01-07 14:21:02","loginip":"220.112.231.143","parentid":"-home_1","password":"8b4cf0258846b23e0a8272bee22c38dd","pinyin":"huangdeying","roleid":"home_2","saveuserid":"系统添加","userauth":"M2RhYm5MMlV5VXpyVjBFSUN2akhRRVhvWEluVDFFYVZWQjFVWW9KN0dZcVNOMndRSVFmZkV6dEc0a2NYZGNn","usercode":"zhongxin002","usergroup":"home_2","userjob":"管理员","username":""}}
     * message : 参数完整
     * status : SUCCESS
     */

    private String message;
    private String status;

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public DataEntity getData() {
        return data;
    }

    public String getMessage() {
        return message;
    }

    public String getStatus() {
        return status;
    }

    public static class DataEntity {
        private String message;
        private String rest_code;
        /**
         * companyname : 深圳市南方网通网络技术开发有限公司——方乐
         * createtime : 2015-12-05 14:37:32
         * id : e9c3ef9d71e4614fa8c473e9e40cb3bd
         * initial : hdy
         * isadmin : Y
         * islogin : Y
         * logindate : 2016-01-07 14:21:02
         * loginip : 220.112.231.143
         * parentid : -home_1
         * password : 8b4cf0258846b23e0a8272bee22c38dd
         * pinyin : huangdeying
         * roleid : home_2
         * saveuserid : 系统添加
         * userauth : M2RhYm5MMlV5VXpyVjBFSUN2akhRRVhvWEluVDFFYVZWQjFVWW9KN0dZcVNOMndRSVFmZkV6dEc0a2NYZGNn
         * usercode : zhongxin002
         * usergroup : home_2
         * userjob : 管理员
         * username :
         */

        private RestDataEntity rest_data;

        public void setMessage(String message) {
            this.message = message;
        }

        public void setRest_code(String rest_code) {
            this.rest_code = rest_code;
        }

        public void setRest_data(RestDataEntity rest_data) {
            this.rest_data = rest_data;
        }

        public String getMessage() {
            return message;
        }

        public String getRest_code() {
            return rest_code;
        }

        public RestDataEntity getRest_data() {
            return rest_data;
        }

        public static class RestDataEntity {
            private String companyname;
            private String createtime;
            private String id;
            private String initial;
            private String isadmin;
            private String islogin;
            private String logindate;
            private String loginip;
            private String parentid;
            private String password;
            private String pinyin;
            private String roleid;
            private String saveuserid;
            private String userauth;
            private String usercode;
            private String usergroup;
            private String userjob;
            private String username;

            public void setCompanyname(String companyname) {
                this.companyname = companyname;
            }

            public void setCreatetime(String createtime) {
                this.createtime = createtime;
            }

            public void setId(String id) {
                this.id = id;
            }

            public void setInitial(String initial) {
                this.initial = initial;
            }

            public void setIsadmin(String isadmin) {
                this.isadmin = isadmin;
            }

            public void setIslogin(String islogin) {
                this.islogin = islogin;
            }

            public void setLogindate(String logindate) {
                this.logindate = logindate;
            }

            public void setLoginip(String loginip) {
                this.loginip = loginip;
            }

            public void setParentid(String parentid) {
                this.parentid = parentid;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public void setPinyin(String pinyin) {
                this.pinyin = pinyin;
            }

            public void setRoleid(String roleid) {
                this.roleid = roleid;
            }

            public void setSaveuserid(String saveuserid) {
                this.saveuserid = saveuserid;
            }

            public void setUserauth(String userauth) {
                this.userauth = userauth;
            }

            public void setUsercode(String usercode) {
                this.usercode = usercode;
            }

            public void setUsergroup(String usergroup) {
                this.usergroup = usergroup;
            }

            public void setUserjob(String userjob) {
                this.userjob = userjob;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getCompanyname() {
                return companyname;
            }

            public String getCreatetime() {
                return createtime;
            }

            public String getId() {
                return id;
            }

            public String getInitial() {
                return initial;
            }

            public String getIsadmin() {
                return isadmin;
            }

            public String getIslogin() {
                return islogin;
            }

            public String getLogindate() {
                return logindate;
            }

            public String getLoginip() {
                return loginip;
            }

            public String getParentid() {
                return parentid;
            }

            public String getPassword() {
                return password;
            }

            public String getPinyin() {
                return pinyin;
            }

            public String getRoleid() {
                return roleid;
            }

            public String getSaveuserid() {
                return saveuserid;
            }

            public String getUserauth() {
                return userauth;
            }

            public String getUsercode() {
                return usercode;
            }

            public String getUsergroup() {
                return usergroup;
            }

            public String getUserjob() {
                return userjob;
            }

            public String getUsername() {
                return username;
            }
        }
    }
}
